package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 社交内容
 * </p>
 *
 * @author author
 * @since 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_social_content")
@ApiModel(value="GeConSocialContent对象", description="社交内容")
public class GeConSocialContent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "open_id")
    private String openId;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "发布内容不能为空")
    private String content;

    @ApiModelProperty(value = "话题id")
    @NotBlank(message = "话题不能为空")
    private String topicId;

    @ApiModelProperty(value = "状态('0':待审核，'1':已通过,'2':未通过)")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "发布者地址")
    private String address;

    @ApiModelProperty(value = "发布者ip")
    private String ip;

    @ApiModelProperty(value = "ip归属地")
    private String ipAddress;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime reviewTime;

    @ApiModelProperty(value = "发布类型('1':海报，'2':Vlog)")
    @NotBlank(message = "发布类型不能为空")
    private String type;

    @ApiModelProperty(value = "图片路径")
    private String imgPath;

    @ApiModelProperty(value = "视频路径")
    private String videoPath;

    @ApiModelProperty(value = "热门状态（'0':不热门，'1':热门）")
    private String hot;

    @ApiModelProperty(value = "排序(值越大越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "点赞数")
    private Integer likeNumber;

    @ApiModelProperty(value = "评论数")
    private Integer reviewNumber;

    @ApiModelProperty(value = "运动id")
    private String sportsId;

    @ApiModelProperty(value = "运动类型")
    private String sportsType;
}
